package com.epkursant.testy;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.annotations.Expose;

public class Test {

	@Expose
	private int id;
	@Expose
	private String pytanie;
	@Expose
	private String a;
	@Expose
	private String b;
	@Expose
	private String c;
	@Expose
	private String odp;
	@Expose
	private String kod;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPytanie() {
		return pytanie;
	}

	public void setPytanie(String pytanie) {
		this.pytanie = pytanie;
	}

	public String getA() {
		return a;
	}

	public void setA(String a) {
		this.a = a;
	}

	public String getB() {
		return b;
	}

	public void setB(String b) {
		this.b = b;
	}

	public String getC() {
		return c;
	}

	public void setC(String c) {
		this.c = c;
	}

	public String getOdp() {
		return odp;
	}

	public void setOdp(String odp) {
		this.odp = odp;
	}

	public String getKod() {
		return kod;
	}

	public void setKod(String kod) {
		this.kod = kod;
	}

	public String getAsJson() {
		GsonBuilder gsonBuilder = new GsonBuilder();

		Gson gson = gsonBuilder.create();

		return gson.toJson(this);
	}

}
